<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <input type="text">
    <ul></ul>
    <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
    <script>
     
        $.ajax({
            url:`http://suggestion.baidu.com/su`,
            dataType:'jsonp',//回应的数据类型
            jsonp:'cb',//设置接受的参数名，如果不设置默认callback
            data:{
                wd:`1`
            },
            success(res){
                console.log(res);
            }
            
        })
    </script>
</body>

</html>